package com.weiyuwqj.api.model;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Table(name = "sys_contracts")
public class SysContracts implements Serializable {
    @Id
    private Integer id;

    /**
     * 合同用户
     */
    @Column(name = "user_id")
    private Integer userId;

    @Column(name = "invest_id")
    private Integer investId;


    /**
     * 合同编号
     */
    private String serialNumber;

    /**
     * 合同标题
     */
    private String title;

    /**
     * 添加时间
     */
    private Date addtime;

    /**
     * 添加ip
     */
    private String addip;

    /**
     * 合同内容
     */
    private String contents;

    /**
     * 合同url
     */
    private String url;

    /**
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取合同用户
     *
     * @return user_id - 合同用户
     */
    public Integer getUserId() {
        return userId;
    }

    /**
     * 设置合同用户
     *
     * @param userId 合同用户
     */
    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    /**
     * @return invest_id
     */
    public Integer getInvestId() {
        return investId;
    }

    /**
     * @param investId
     */
    public void setInvestId(Integer investId) {
        this.investId = investId;
    }

    /**
     * 获取合同标题
     *
     * @return title - 合同标题
     */
    public String getTitle() {
        return title;
    }

    /**
     * 设置合同标题
     *
     * @param title 合同标题
     */
    public void setTitle(String title) {
        this.title = title;
    }

    /**
     * 获取添加时间
     *
     * @return addtime - 添加时间
     */
    public Date getAddtime() {
        return addtime;
    }

    /**
     * 设置添加时间
     *
     * @param addtime 添加时间
     */
    public void setAddtime(Date addtime) {
        this.addtime = addtime;
    }

    /**
     * 获取添加ip
     *
     * @return addip - 添加ip
     */
    public String getAddip() {
        return addip;
    }

    /**
     * 设置添加ip
     *
     * @param addip 添加ip
     */
    public void setAddip(String addip) {
        this.addip = addip;
    }

    /**
     * 获取合同内容
     *
     * @return contents - 合同内容
     */
    public String getContents() {
        return contents;
    }

    /**
     * 设置合同内容
     *
     * @param contents 合同内容
     */
    public void setContents(String contents) {
        this.contents = contents;
    }


    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getSerialNumber() {
        return serialNumber;
    }

    public void setSerialNumber(String serialNumber) {
        this.serialNumber = serialNumber;
    }
}